<?PHP
include_once '../tools/DbTools.php';

session_start();
$token=$_COOKIE['Token'];
$username=$_SESSION[$token]['$username'];

$sql = "select CardMoney from bankcard where CardNo='".$username."'";

DbTools::InitDb();
$result = DbTools::select($sql);
$CardMoney = $result[0]['CardMoney'];

?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心</title>
</head>
<body>
<form action="moneyInAction.php" method="post">
    当前余额：<input type="text" name="now_money" id="" value="<?php echo $CardMoney ?>" readonly="readonly" disabled="disabled" /><br />
    存钱金额： <input type="text" name="in_money" id="" value="" />
    <br />
    <input type="submit" value="提交"/>
</form>

</body>
</html>
